package com.demo3;

public class B extends A{
    public B(String name) {
        super(name);//超类，调用父类当中的构造器
    }

    public static void main(String[] args) {
        B b = new B("tom");

    }
}
